{layout name="layout" $title/}
<div class="col-md-9">
  <div class="panel panel-default  panel-success">
    <div class="panel-heading">
      <h3 class="panel-title">编辑会议室信息</h3>
    </div>
    <div class="panel-body">
      <form class="form-horizontal" method="post" class="post" action="{:url('office/meeting_room/update','id='.$meetingroom.id)}" enctype="multipart/form-data">
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">编 码</label>
          <div class="col-md-9">
            <INPUT type="text" class="form-control" name="code" id="inputPassword3" value="{$meetingroom.code}" readonly>
          </div>
        </div>
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">名 称</label>
          <div class="col-md-9">
            <INPUT type="text" class="form-control" name="title" id="inputPassword3" value="{$meetingroom.title}">
          </div>
        </div>
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">增加记录人ID</label>
          <div class="col-md-9">
            <INPUT type="text" class="form-control" name="create_id" id="inputPassword3" value="{$meetingroom.create_id}" readonly>
          </div>
        </div>
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">增加记录人姓名</label>
          <div class="col-md-9">
            <INPUT type="text" class="form-control" name="create_name" id="inputPassword3" value="{$meetingroom.create_name}" readonly>
          </div>
        </div>
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">增加记录时间</label>
          <div class="col-md-9">
            <INPUT type="date" class="form-control" name="create_time" id="inputPassword3" value="{$meetingroom.create_time}" readonly>
          </div>
        </div>
       <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">更新记录时间</label>
          <div class="col-md-9">
            <INPUT type="date" class="form-control" name="update_time" id="inputPassword3" value="{$meetingroom.update_time}"  readonly>
          </div>
        </div>
       <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">详细说明</label>
          <div class="col-md-9">
            <textarea class="form-control" rows="5" name="detail" id="inputPassword3">{$meetingroom.detail}</textarea>
          </div>
        </div>
        <!-- 注:此段为演示用,并无数据来源,也不会传递数据 ↓ -->
        <div class="form-group">
            <label class="col-md-2 control-label" for="exampleInputAmount">单价</label>
            <div class="input-group col-md-9">
              <div class="input-group-addon">$</div>
              <input type="text" class="form-control" id="exampleInputAmount" placeholder="费用...">
              <div class="input-group-addon">.00</div>
            </div>
        </div>
        <!-- 注:此段为演示用,并无数据来源 ,也不会传递数据↑ -->
        <div class="form-group">
          <label for="inputEmail3" class="col-md-2 control-label">是否某事情</label>
          <div class="col-md-9">
              <label class="radio-inline">
                <input type="radio" name="is_sth" id="inlineRadio1" value="0" {$meetingroom.is_sth==0?='checked'}> 否
              </label>
              <label class="radio-inline">
                <input type="radio" name="is_sth" id="inlineRadio2" value="1" {$meetingroom.is_sth==1?='checked'}>是
              </label>
          </div>
        </div>
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">某物数量</label>
          <div class="col-md-9">
            <input type="number" name='sth_num' class="form-control" id="inputPassword3"  value="{$meetingroom.sth_num}">
          </div>
        </div>
        <div class="form-group">
          <label for="inputEmail3" class="col-md-2 control-label">状态</label>
          <div class="col-md-9">
            <select name="static" class="form-control">
              <option value='' >--请选择--</option>
              <option value='0' {$meetingroom.static==0?='selected'}>删除</option>
              <option value='1' {$meetingroom.static==1?='selected'}>正常</option>
              <option value='2' {$meetingroom.static==2?='selected'}>维修</option>
              <option value='3' {$meetingroom.static==3?='selected'}>还没想到</option>
              <option value='4' {$meetingroom.static==4?='selected'}>其他</option>
            </select>
          </div>
        </div>
        <!-- 注:此段为文件上传,测试 ↓ -->
        <div class="form-group">
          <label for="inputPassword3" class="col-md-2 control-label">照片</label>
          <div class="col-md-9">
            <img src="{:url('/uploads/'.$meetingroom.pic_name)}" class="img-responsive img-thumbnail" alt="暂无照片...">
            <input type="file" name='pic' class="form-control" id="inputPassword3"  placeholder="请选择照片...">
          </div>
        </div>
        <!-- 注:此段为文件上传,测试 ↑ -->
        <div class="form-group">
          <div class="col-md-offset-2 col-md-9">
            <p>
              <input type="hidden" name="__token__" value="{$Request.token}" />
              <a href="{:url('office/meeting_room/index')}"  class="btn btn-primary">返  回 <span class="glyphicon glyphicon-arrow-left" aria-hidden="true"></span></a>
              <button type="submit" class="btn btn-primary">提  交 <span class="glyphicon glyphicon-arrow-up" aria-hidden="true"></span></button>
              <a href="{:url('office/meeting_room/delete','id='.$meetingroom.id)}" class="btn btn-danger">彻底删除 <span class="glyphicon glyphicon-trash" aria-hidden="true"></span></a>
            </p>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>